package easycloud.ecs.provider.aliyun.model;

import java.io.InputStream;

import com.aliyun.openservices.oss.model.OSSObject;

import easycloud.ecs.api.model.IStorageObject;

public class AliyunStorageObject implements IStorageObject {

	private OSSObject object;

	public AliyunStorageObject(OSSObject ossObject) {
		object = ossObject;
	}

	@Override
	public String getETag() {
		return object.getObjectMetadata().getETag();
	}

	@Override
	public String getKey() {
		return object.getKey();
	}

	@Override
	public InputStream getObjectContent() {
		return object.getObjectContent();
	}
}
